package cn.edu.scau.cmi.luochenghao.chapter06;

class A_7 {
	double f(double x,double y) {
		return x+y;
	}
	static int g(int n) {
		return n*n;
	}
}

class B_7 extends A_7 {
	double f(double x,double y) {
		double m=super.f(x,y);
		return m+x*y;
	}
	static int g(int n) {
		int m=A_7.g(n);
		return m+n;
	}
}

public class E_7 {

	public static void main(String[] args) {
		B_7 b=new B_7();
		System.out.println(b.f(10.0,8.0));
		System.out.println(b.g(3));
	}

}
